package com.qixin.api.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 李许多
 * @since 2018-11-03
 */
@TableName("com_user")
public class ComUser extends Model<ComUser> {

    private static final long serialVersionUID = 1L;

	private Long id;

    /**
     * 密码
     */
	private String password;
    /**
     * 手机号
     */
	@TableField("call_phone")
	private String callPhone;

	public String getNewpassword1() {
		return newpassword1;
	}

	public void setNewpassword1(String newpassword1) {
		this.newpassword1 = newpassword1;
	}

	/**
	 * 新密码
	 */
	@TableField(exist = false)
	private String newpassword1;

	//该注解表示表中不存在该字段 调用新增时 不会自动映射新增该字段
	@TableField(exist = false)
	private  TotalRole  totalRole;
	@TableField(exist = false)
	private  String  roleName;

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public TotalRole getTotalRole() {
		return totalRole;
	}

	public void setTotalRole(TotalRole totalRole) {
		this.totalRole = totalRole;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}



	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCallPhone() {
		return callPhone;
	}

	public void setCallPhone(String callPhone) {
		this.callPhone = callPhone;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ComUser{" +
				"id=" + id +
				", password='" + password + '\'' +
				", callPhone='" + callPhone + '\'' +
				", newpassword1='" + newpassword1 + '\'' +
				", totalRole=" + totalRole +
				", roleName='" + roleName + '\'' +
				'}';
	}
}
